/*
 * Copyright (c) 2006, 2023, webrx.cn All rights reserved.
 *
 */

package cn.webrx;

/**
 * <p>Project: jse2303 - AMovie</p>
 * <p>Powered by webrx On 2023-07-28 17:25:46</p>
 * <p>描述：<p>
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class BMovie implements Movie {
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public BMovie() {
    }

    public BMovie(String name) {
        this.name = name;
    }

    @Override
    public void play() {
        System.out.println(this.name);
    }

    @Override
    public void show() {
        System.out.println("看电影");
    }

    @Override
    public int pf(int i) {
        return i * i;
    }
}
